Skip to content

test(orchestrator): Align post-merge CTM fixtures#4193

Open
mwolson wants to merge 1 commit into
pingdotgg:t3code/codex-turn-mappingfrom
mwolson:fix/ctm-post-merge-ci
Open

test(orchestrator): Align post-merge CTM fixtures#4193
mwolson wants to merge 1 commit into
pingdotgg:t3code/codex-turn-mappingfrom
mwolson:fix/ctm-post-merge-ci

Conversation

@mwolson

@mwolson mwolson commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Problem and Fix

Problem and Why it Happened Fix
Two CLI configuration tests still expected the pre-v2 userdata directory even though explicit server paths resolve under userdata-v2. Update the state directory and database path assertions to match production path derivation.
Two Claude replay transcripts still expected the unrestricted claude_code tool preset after CTM began passing explicit read-only tool lists. Update only the recorded query.open frames to expect Read, Glob, and Grep, including allowedTools where the runtime policy supplies it.

Validation

  • Latest-base focused CLI config, desktop environment, and orchestrator replay
    fixtures: 17 tests pass, 1 skipped
  • vp check: pass with existing warnings only
  • vp run typecheck: pass
  • Grok implementation self-review: pass
  • Codex independent review: no findings

Note

Align CTM test fixtures to use explicit tool lists and userdata-v2 state directory

  • Updates claude_transcript.ndjson fixtures in tool_call_read_only_on_request and tool_call_restricted_granular to expect an explicit ["Read", "Glob", "Grep"] tool list instead of a {type: "preset", preset: "claude_code"} object; tool_call_read_only_on_request also adds allowedTools to the expected payload.
  • Updates config.test.ts assertions to expect stateDir and dbPath under userdata-v2 instead of userdata.

Macroscope summarized 3ec80f3.


Note

Low Risk
Only test assertions and recorded replay fixtures change; no production code paths are modified.

Overview
Brings post-merge CI fixtures in line with orchestrator v2 path layout and the current Claude agent tool policy—test and replay expectations only, no runtime behavior changes.

CLI config tests now assert stateDir and dbPath under userdata-v2 instead of userdata, matching explicit-server deriveServerPaths behavior after the v2 state directory switch.

Two orchestration-v2 Claude replay transcripts update the expected query.open payload: the unrestricted claude_code tool preset is replaced with an explicit ["Read", "Glob", "Grep"] list (and allowedTools on the read-only-on-request scenario) so CTM replay matches how CTM now opens sessions with read-only tools.

Reviewed by Cursor Bugbot for commit 3ec80f3. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 05ca0a5a-8ece-42a8-b16b-064f816bad2d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Jul 20, 2026
@mwolson
mwolson marked this pull request as ready for review July 20, 2026 17:37
@macroscopeapp

macroscopeapp Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved

All changes are confined to test files and test fixtures, with no production code modified. The updates align expected values after a merge, with zero runtime behavior impact.

You can customize Macroscope's approvability policy. Learn more.

@mwolson
mwolson force-pushed the fix/ctm-post-merge-ci branch from 46f08ee to 3ec80f3 Compare July 22, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant